import myaxios from "../MyAxios";
import BASEURL from "../BaseUrl";

const TCHYURL = BASEURL.TCHYURL;
const orderApi = {
  // 货主列表
  dropDownByOrder(params) {
    let url = TCHYURL + "/supplier/selfSupportOrder/fuzzyQueryShipper";
    return myaxios.get(url, params);
  },
  // 项目信息
  project_down(params) {
    let url = TCHYURL + "/supplier/selfSupportOrder/fuzzyQueryProject";
    return myaxios.get(url, params);
  },
  // 车队选择
  dropDownFleet(params) {
    let url = TCHYURL + "/supplier/fleet/list";
    return myaxios.get(url, params);
  },
  // 司机选择
  dropDownDriver(params) {
    let url = TCHYURL + "/supplier/driver/changeFleetDriver";
    return myaxios.get(url, params);
  },

  
  //线路选择
  userLineDownList(params) {
    let url = TCHYURL + "/supplier/selfSupportOrder/userLineDownList";
    return myaxios.get(url, params);
  },
  //线路详情选择
  userLineAddressList(params) {
    let url = TCHYURL + "/supplier/selfSupportOrder/userLineAddressList";
    return myaxios.get(url, params);
  },

  //线路多数据选择
  changeLine(params) {
    let url = TCHYURL + "/supplier/supplierLine/changeLine";
    return myaxios.get(url, params);
  },

  //选择车型
  get_vehicle_model_list(params) {
    let url = TCHYURL + "/account/vehicle/get_vehicle_model_list";
    return myaxios.get(url, params);
  },
  // 修改订单回显
  getAcceptCarriageUpdatedetail(params) {
    let url = TCHYURL + "/supplier/selfSupportOrder/echoShipper";
    return myaxios.get(url, params);
  },
  //创建订单
  addOrderGoods(params) {
    let url = TCHYURL + "/supplier/selfSupportOrder/addOrder";
    return myaxios.post(url, params);
  },
  //修改订单
  platformOrderUpdateShipper(params) {
    let url = TCHYURL + "/supplier/selfSupportOrder/updateOrder";
    return myaxios.post(url, params);
  },
  //车队列表
  addOrder(params) {
    let url = TCHYURL + "/supplier/fleet/list";
    return myaxios.get(url, params);
  },
  //车队列表
  queryAllFleet(params) {
    let url = TCHYURL + "/supplier/fleet/queryAllFleet";
    return myaxios.get(url, params);
  },
  //车队下司机
  changeFleetDriver(params) {
    let url = TCHYURL + "/supplier/driver/changeFleetDriver";
    return myaxios.get(url, params);
  },
  //车队下司机详情
  detail(params) {
    let url = TCHYURL + "/supplier/driver/detail";
    return myaxios.get(url, params);
  },
  //批量建单
  addOrderList(params) {
    let url = TCHYURL + "/supplier/selfSupportOrder/addOrderList";
    return myaxios.post(url, params);
  },
  //批量文档建单
  batchCreateOrder(params) {
    let url = TCHYURL + "/supplier/selfSupportOrder/batchCreateOrders";
    return myaxios.post(url, params);
  },

  //查询供应商详细信息
  assignDriverDetail(params) {
    let url = TCHYURL + "/account/supplier/assignDriverDetail";
    return myaxios.post(url, params);
  },
  //创建指派司机建单
  addAssignDriverOrder(params) {
    let url = TCHYURL + "/order/assistOrder/addAssignDriverOrder";
    return myaxios.post(url, params);
  },
  //创建收货地址
  importStoreAddr(params) {
    let url = TCHYURL + "/order/assistOrder/importStoreAddr";
    return myaxios.post(url, params);
  },
  //收货地址列表
  queryStoreAddrBySupplierId(params) {
    let url = TCHYURL + "/order/assistOrder/queryStoreAddrBySupplierId";
    return myaxios.post(url, params);
  },
  //导出地址列表
  exportStoreAddrBySupplierId(params) {
    let url = TCHYURL + "/order/assistOrder/exportStoreAddrBySupplierId";
    return myaxios.post(url, params);
  },

  //收货地址列表修改
  querymodifyStoreAddrByStoreNo(params) {
    let url = TCHYURL + "/order/assistOrder/modifyStoreAddrByStoreNo";
    return myaxios.post(url, params);
  },
  addStoreAddr(params) {
    let url = TCHYURL + "/order/assistOrder/addStoreAddr";
    return myaxios.post(url, params);
  },
  //收货地址列表删除
  removeStoreAddrByStoreNo(params) {
    let url = TCHYURL + "/order/assistOrder/removeStoreAddrByStoreNo";
    return myaxios.post(url, params);
  },
  //收货地址列表删除条件查询所有
  storeAddrRemoveAll(params) {
    let url = TCHYURL + "/order/assistOrder/storeAddrRemoveAll";
    return myaxios.post(url, params);
  },
  //驳回编辑
  platformOrderupdate(params) {
    let url = TCHYURL + "/order/platformOrder/update";
    return myaxios.post(url, params);
  },
  //资金流水
  queryPageWalletIndex(params) {
    let url = TCHYURL + "/account/driver/queryPageWalletIndex";
    return myaxios.post(url, params);
  },
  //地址审核列表
  selectStoreAddrExamine(params) {
    let url = TCHYURL + "/order/storeAddrExamine/selectStoreAddrExamine";
    return myaxios.get(url, params);
  },
  //地址审核
  auditStoreAddrExamine(params) {
    let url = TCHYURL + "/order/storeAddrExamine/auditStoreAddrExamine";
    return myaxios.get(url, params);
  },
  //审核删除
  deleteStoreAddrExamine(params) {
    let url = TCHYURL + "/order/storeAddrExamine/deleteStoreAddrExamine";
    return myaxios.get(url, params);
  },
  //数据概览
  getOperational(params) {
    let url = TCHYURL + "/supplier/index/getOperational";
    return myaxios.post(url, params);
  },
   //保险咨询管理
   queryPageDriverInsure(params) {
    let url = TCHYURL + "/account/driver/queryPageDriverInsure";
    return myaxios.post(url, params);
  },
  //保险咨询管理
  modifyDriverInsureByDid(params) {
    let url = TCHYURL + "/account/driver/modifyDriverInsureByDid";
    return myaxios.post(url, params);
  },
   //保险咨询管理
   deleteDriverInsureByDid(params) {
    let url = TCHYURL + "/account/driver/deleteDriverInsureByDid";
    return myaxios.post(url, params);
  },

//司机费用统计
querySupplierDriver(params) {
  let url = TCHYURL + "/order/bank/querySupplierDriver";
  return myaxios.post(url, params);
},
//司机费用统计汇总
querySummarySupplierDriver(params) {
  let url = TCHYURL + "/order/bank/querySummarySupplierDriver";
  return myaxios.post(url, params);
},
//司机费用统计导出
queryExportSupplierDriver(params) {
  let url = TCHYURL + "/order/bank/queryExportSupplierDriver ";
  return myaxios.post(url, params);
},


//费用统计
querySupplierCostStatistics(params) {
  let url = TCHYURL + "/order/bank/querySupplierCostStatistics";
  return myaxios.post(url, params);
},
//费用统计汇总
querySumSupplierCostStatistics(params) {
  let url = TCHYURL + "/order/bank/querySumSupplierCostStatistics";
  return myaxios.post(url, params);
},
//费用统计导出
queryExportSupplierCostStatistics(params) {
  let url = TCHYURL + "/order/bank/queryExportSupplierCostStatistics ";
  return myaxios.post(url, params);
},

};
export default orderApi;
